<template>
    <Person v-if="isShow"/>
</template>

<script lang="ts" setup name="App">
    import { onBeforeMount, onMounted, ref } from 'vue';
    import Person from './components/Person.vue';

    let isShow = ref(true);

    console.log('父-创建');

    onBeforeMount(() => {
        console.log('父-挂载前');
    });

    onMounted(() => {
        console.log('父-挂载完毕');
    });
</script>
